const titles = {
    en: {
        luckrule: '123',
        luckdraw: '123'
    },
    zh: {
        luckrule: '123',
        luckdraw: '123'
    }
}

const getContext = (req) => {
    let lang = req.query.lang || 'zh'
    let title = '123'
    if (req.url.includes('luckrule')) {
        title = titles[lang].luckrule
    }
    if (req.url.includes('luckdraw')) {
        title = titles[lang].luckdraw
    }

    return {
        title,
        liu:'刘勇'
    }
}
module.exports = getContext